package com.yegs.jltqc.dao;

import com.yegs.jltqc.VO.OutCome;
import com.yegs.jltqc.VO.QcProduce;
import com.yegs.jltqc.VO.Quality;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface QcProduceRepository extends JpaRepository<QcProduce,Long> {

    Page<QcProduce> findQcProduceByName(String name, Pageable pageable);

    QcProduce findFirstByIdIsAfter(Long id);

    QcProduce findFirstByIdBeforeOrderByIdDesc(Long id);

    QcProduce findFirstByOrderById();

    QcProduce findFirstByOrderByIdDesc();

}
